SELECT
<#switch (object_id!)>
	<#case "id">
T.ID AS id
	<#break>
	<#case "orgId">
T.ORG_ID AS orgId
	<#break>
	<#case "permissionId">
T.PERMISSION_ID AS permissionId
	<#break>
	<#default>
COUNT(1) AS COUNT_
</#switch>
FROM c1_permission_org T
<#include "whereByCode.ftl">